import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import store from './store'
import {
  desensitization
} from "@/utils/desensitization.js";
import Element from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './styles/reset.css';
// import './permission'
import jsCookie from 'js-cookie'
import rules from './utils/formCheck.js'
import './utils/stopBtnRepeat.js'
import VueRouter from "vue-router";

Vue.use(Element, {
  size: 'small',
  zIndex: 3000
});

Vue.config.productionTip = false
Vue.prototype.$desensitization = desensitization
Vue.prototype.$cookie = jsCookie;
Vue.prototype.$rules = rules
const originalPush = VueRouter.prototype.push;

VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch((err) => err);
};

new Vue({
  router,
  // store,
  render: h => h(App)
}).$mount('#app')